package day6;

/**
 * @author oldliu
 * @since 1.0
 */
public class StrTest3 {
    public static void main(String[] args) {
        String string = "我喜欢java";
        byte[] b = string.getBytes();
        char[] a = string.toCharArray();
        for (int i = 0; i < b.length; i++) {
            System.out.print(b[i] + " ");
        }
        System.out.println();
        for (int i = 0; i < a.length; i++) {
            System.out.print((int)a[i] + " ");
        }
    }
}
